<!DOCTYPE html>
<html lang="en">

<head>
   <meta charset="utf-8">
   <!-- 公共 cs 文件 -->
   <%- include('../commont/Link'); %>
   <title>会员添加</title>
</head>

<body>
   <!-- 公共的部分 -->
   <%- include('../commont/Header', {user: user}); %>
   <div id="mws-wrapper">
      <!-- 左侧导航 -->
      <%- include('../commont/Navigator', {curNav: curNav}); %>
      <div id="mws-container" class="clearfix">
         <!-- 内容区域 -->
         <div class="container">
            <!-- 用户收货地址 -->
            <div class="mws-panel grid_8">
               <div class="mws-panel-header">
                  <span><i class="icon-table"></i> 会员收货地址</span>
               </div>
               <div class="mws-panel-body no-padding">
                  <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
                     <% if (data.length) {%>
                        <div id="DataTables_Table_1_length" class="dataTables_length">
                           <label>Show
                              <select size="1"
                                 name="DataTables_Table_1_length" aria-controls="DataTables_Table_1">
                                 <option value="10" selected="selected">10</option>
                                 <option value="25">25</option>
                                 <option value="50">50</option>
                                 <option value="100">100</option>
                              </select> entries
                           </label>
                        </div>
                     <% }%>
                     <div class="dataTables_filter" id="DataTables_Table_1_filter">
                        <% if (!data.length) {%>
                           <a class="btn btn-danger" style="float: left;" href="/homeuser/userlist">当前会员未添加收货地址</a>
                        <%}%>
                        <label>搜索: 
                           <input type="text" aria-controls="DataTables_Table_1">
                           <button class="btn btn-inverse btn-search" href="/homeuser/usersearch">搜索</button>
                        </label>
                     </div>
                     <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
                        <thead>
                           <tr role="row">
                              <th class="sorting_asc" role="columnheader" tabindex="0"
                                 aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending"
                                 aria-label="Rendering engine: activate to sort column descending"
                                 style="width: 132px;">序号</th>
                              <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1"
                                 rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending"
                                 style="width: 180px;">
                                 收件人姓名</th>
                              <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1"
                                 rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending"
                                 style="width: 167px;">手机号码</th>
                              <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1"
                                 rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending"
                                 style="width: 111px;">收货地址</th>
                           </tr>
                        </thead>
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                           <% data.forEach((v,i) => { %>
                              <tr class="<%= i % 2 === 0 ? 'even' : 'odd' %>">
                                 <td class=""><%= i + 1 %> </td>
                                 <td><%= v.realname %></td>
                                 <td><%= v.phone %></td>
                                 <td><%= v.address %></td>
                              </tr>
                           <% }) %>
                        </tbody>
                     </table>
                     <div class="dataTables_info" id="DataTables_Table_1_info">Showing 1 to 10 of 57 entries</div>
                     <div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate">
                        <a tabindex="0" class="first paginate_button paginate_button_disabled"
                           id="DataTables_Table_1_first">First</a>
                        <a tabindex="0" class="previous paginate_button paginate_button_disabled"
                           id="DataTables_Table_1_previous">Previous</a>
                        <span>
                           <a tabindex="0" class="paginate_active">1</a><a tabindex="0" class="paginate_button">2</a>
                           <a tabindex="0" class="paginate_button">3</a>
                           <a tabindex="0" class="paginate_button">4</a><a tabindex="0" class="paginate_button">5</a>
                        </span>
                        <a tabindex="0" class="next paginate_button" id="DataTables_Table_1_next">Next</a>
                        <a tabindex="0" class="last paginate_button" id="DataTables_Table_1_last">Last</a>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <!-- 中框底部区域 -->
         <%- include('../commont/Footer'); %>
      </div>
   </div>
   <!-- 公共 js 文件 -->
   <%- include('../commont/Script'); %>
</body>

</html>